|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.Dialog
org.eclipse.vtp.framework.interactions.voice.vxml.Form
public class Form
The Form class represents the <form> VXML element. A
form can contain any number of Block and Field
elements. The child elements are presented to the caller in the order they
were added to the form.
Instead of handling filled events within each field of the form, filled
handlers can be added to the form. This provides flexibility in the way a
form is completed or progresses during processing.
Variables can be added at the form level. These variables are then accessable
to all child elements and are a convenient way to pass data from one child to
another.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Form(java.lang.String id)
Creates a new instance of Form with the specified
identifier. |
|
Form(java.lang.String id,
java.lang.String scope)
Creates a new instance of Form with the specified identifier
and scope. |
|
| Method Summary | |
|---|---|
void |
addFilledHandler(Filled filled)
Adds the specified filled handler to this form. |
void |
addFormElement(FormElement formElement)
Adds the specified form element to this form. |
void |
addVariable(Variable variable)
Adds the specified variable element to this form. |
void |
removeFilledHandler(Filled filled)
Removes the specified filled handler from this form. |
void |
removeFormElement(FormElement formElement)
Removes the specified form element from this form. |
void |
removeVariable(Variable variable)
Removes the specified variable element from this form. |
protected void |
writeFilledHandlers(org.xml.sax.ContentHandler outputHandler)
Write the filled handlers in this form to the specified content handler. |
protected void |
writeFormElements(org.xml.sax.ContentHandler outputHandler)
Write the elements in this form to the specified content handler. |
protected void |
writeVariables(org.xml.sax.ContentHandler outputHandler)
Write the variables in this form to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.voice.vxml.Dialog |
|---|
addEventHandler, clearProperty, getID, getPropertyNames, getPropertyValue, getScope, removeEventHandler, setID, setProperty, setScope, writeAttributes, writeEventHandlers, writeProperties |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Form(java.lang.String id)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Form with the specified
identifier. The sets of form elements, variables, and filled handlers are
initially empty.
id - See documentation of the Dialog element.
java.lang.IllegalArgumentException - If the supplied ID is empty.
java.lang.NullPointerException - If the supplied ID is null.
public Form(java.lang.String id,
java.lang.String scope)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
Form with the specified identifier
and scope. The sets of form elements, variables, and filled handlers are
initially empty.
id - See documentation of the Dialog element.scope - See documentation of the Dialog element.
java.lang.IllegalArgumentException - If the supplied ID is empty.
java.lang.IllegalArgumentException - If the supplied scope is invalid.
java.lang.NullPointerException - If the supplied ID is null.
java.lang.NullPointerException - If the supplied scope is null.| Method Detail |
|---|
public void addVariable(Variable variable)
throws java.lang.NullPointerException
variable - The variable to add.
java.lang.NullPointerException - If the supplied variable is null.
public void removeVariable(Variable variable)
throws java.lang.NullPointerException
variable - The variable to remove.
java.lang.NullPointerException - If the supplied variable is null.
public void addFormElement(FormElement formElement)
throws java.lang.NullPointerException
formElement - The form element to add.
java.lang.NullPointerException - If the supplied element is null.
public void removeFormElement(FormElement formElement)
throws java.lang.NullPointerException
formElement - The form element to remove.
java.lang.NullPointerException - If the supplied element is null.
public void addFilledHandler(Filled filled)
throws java.lang.NullPointerException
filled - The filled handler to add.
java.lang.NullPointerException - If the supplied filled handler is
null.
public void removeFilledHandler(Filled filled)
throws java.lang.NullPointerException
filled - The filled handler to remove.
java.lang.NullPointerException - If the supplied filled handler is
null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.
protected void writeVariables(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the variables fails.
protected void writeFormElements(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the elements fails.
protected void writeFilledHandlers(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the filled handlers fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||